import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@EnableAutoConfiguration
public class ObsApplication {

    public static void main(String[] args) throws Exception{
        SpringApplication.run(ObsApplication.class, args);
//        SimpleMultipartUploadSample.upload(null);
//        DownloadSample.download(null);
    }

    @RequestMapping("/health")
    public String health(){
        return "ok";
    }

    @RequestMapping("/upload")
    public String upload() throws Exception{
        SimpleMultipartUploadSample.upload(null);
        return "ok";
    }

    @RequestMapping("/download")
    public String download() throws Exception{
        DownloadSample.download(null);
        return "ok";
    }
}
